package com.qdlc.p2p.biz.sms;

import kafka.utils.VerifiableProperties;

import org.apache.commons.lang3.SerializationUtils;

import com.qdlc.p2p.common.core.queue.ValueEvent;

/**
 * Created by wuaj on 2016/4/13.
 */
public class ValueEventDecoder implements kafka.serializer.Decoder<ValueEvent> {
	
	public ValueEventDecoder(){}
	
	public ValueEventDecoder(VerifiableProperties props){}
	
    @Override
    public ValueEvent fromBytes(byte[] bytes) {
        return (ValueEvent) SerializationUtils.deserialize(bytes);
    }
}